#include<iostream>
#include"EquationSolver.h"
#include<cmath>
#include<limits>

double Function::operator()(double _x)
{
  return 1/_x - pow(2,_x);
}

double Function::diff(double _x)
{
  return 1;
}

int main(){
  Function f;
  Bisection bis(0, 1, std::numeric_limits<double>::epsilon(), 1000, f);
  bis.solve();
  return 0;
}
